<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  <%@include file="/view/common/js-css.jsp"%>
  <title>天朝企业用户登录</title>

  <link rel="stylesheet"
	href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
<link rel="shortcut icon" href="<%=request.getContextPath()%>/static/common/img/favicon.ico"/>
<script
	src="<%=request.getContextPath()%>/static/common/plugin/jquery.min.js"></script>
<script
	src="<%=request.getContextPath()%>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
<link href="<%=request.getContextPath()%>/static/common/plugin/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath()%>/static/common/plugin/bootstrap.min.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
	<link href="<%=request.getContextPath()%>/static/common/plugin/bootstrap-social.css" rel="stylesheet" type="text/css">	
	<link href="<%=request.getContextPath()%>/static/common/plugin/templatemo_style.css" rel="stylesheet" type="text/css">
</head>

</head>
<body class="templatemo-bg-image-1">
  
<!-- 登录失败后的页面显示 -->
		<c:if test="${!empty param.loginError }">
			<div class="alert alert-danger alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>用户名或密码错误！</strong>
			</div>
		</c:if>
		<c:if test="${!empty param.registerSuccess }">
			<div class="alert alert-success alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>用户帐号注册成功，请登录！</strong>
			</div>
		</c:if>
		<c:if test="${!empty param.logoutSuccess }">
			<div class="alert alert-success alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>用户帐号注销成功，请登录！</strong>
			</div>
		</c:if>
      <div class="container">
          <div class="col-md-12">  
		<form class="form-horizontal templatemo-login-form-2" role="form" action="<%=request.getContextPath()%>/TalentServlet?command=login"
						method="post">
				 <div class="row">
					<div class="col-md-12">
						<h1>用户登录</h1>
					</div>
				</div>
				 <div class="row">
					<div class="templatemo-one-signin col-md-6">
				        <div class="form-group">
				          <div class="col-md-12">		          	
				            <label for="username" class="control-label">用户名</label>
				            <div class="templatemo-input-icon-container">                
				<input type="text" name="code" class="form-control" value="${cookie.code.value }"  placeholder="username" data-rule="required"/>
				   </div>		            		            		            
				          </div>              
				        </div>
				        <div class="form-group">
				          <div class="col-md-12">
				            <label for="password" class="control-label">密码</label>
				            <div class="templatemo-input-icon-container">
				<input type="password"name="password" class="form-control" id="inputPassword" placeholder="Password" value="${cookie.password.value }" data-rule="required" />
				    </div>
				          </div>
				        </div>
				        <div class="form-group">
				          <div class="col-md-12">     
				<div id="remember" class="checkbox">
                      <label>
                          <input type="checkbox" style="display:inline;"name="remember" value="true" <c:if test="${cookie.remember.value == 'true' }">checked="checked"</c:if>> Remember me
                      </label>
                  </div>
                   </div>
				          </div>
				       
                   <div class="form-group">
				          <div class="col-md-12">
				            <input type="submit" value="登录" class="btn btn-warning">
				          </div>
				        </div>
				        <div class="form-group">
				          	<div class="col-md-12">
				        		<a href="register.jsp" class="text-center">注册新账号</a>|
							<a href="forgetPassword.jsp" class="text-center">忘记密码？</a>
				       	 	</div>
				    	
					</div>
					</div>
					<div class="templatemo-other-signin col-md-6">
						<label class="margin-bottom-15">
							One-click sign in using other services. Credit goes to <a rel="nofollow" href="http://lipis.github.io/bootstrap-social/">Bootstrap Social</a> for social sign in buttons.
						</label>
						<a class="btn btn-block btn-social btn-facebook margin-bottom-15">
						    <i class="fa fa-facebook"></i> 第三方登录QQ
						</a>
						<a class="btn btn-block btn-social btn-twitter margin-bottom-15">
						    <i class="fa fa-twitter"></i> 第三方登录新浪微博
						</a>
						<a class="btn btn-block btn-social btn-google-plus">
						    <i class="fa fa-google-plus"></i> 第三方登录微信
						</a>
					</div>   
				</div>				 	
		      </form>		      		      
		</div>
	</div>
	<script>
	//ajax  定义核心请求对象变量
	var xmlHttpRequest;
	//定义创建XMLHttpRequest对象的函数
	function createRequest(){
		if(window.XMLHttpRequest){//大部分浏览器
			xmlHttpRequest = new XMLHttpRequest(); 
		}else{
			xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP")
		}
	}
	//定义发送请求函数
	function sendRequest(){
		if(xmlHttpRequest==null){
			createRequest();
		}
		//1.打开请求
		xmlHttpRequest.open("GET",url,true);
		//2.发送请求
		//3.处理响应数据
	}
	
	//定义发送请求得到响应数据的回调函数
	
	</script>


</body>
</html>